<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>新建模型 - 模型管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	function page(n,s){
		if(n) $("#pageNo").val(n);
		if(s) $("#pageSize").val(s);
		$("#searchForm").attr("action","${ctx}/admin/building/buildingList");
		$("#searchForm").submit();
    	return false;
    }
	</script> 
	<style type="text/css">
		.getMargin{
				margin:0 auto;
		}
	</style>
</head>
<body>

<form:form id="searchForm" action="" method="post">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
</form:form>
	<div class="getMargin">
		<table id="contentTable" class="table table-striped table-bordered table-condensed">
			<thead>
				<th>楼名</th>
				<th>管理员</th>
				<th>操作</th>
				
			</thead>
			<c:forEach items="${page.list }" var="a">
				
				<tr>
					<td>${a.buildingName }</td>
					<td>${a.adminsId }</td>
					<td><a href="${ctx}/admin/building/buildingForm?buildingId=${a.id}">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="${ctx}/admin/building/deleteBuilding?id=${a.id}" onClick="return confirm('确定删除?');">删除</a></td>
				</tr>
			</c:forEach>
		</table>
		<div class="pagination">${page}</div>	
	</div>
	
</body>
</html>
